-- GENERATED SPELL FOR [Bloodsail Swashbuckler] --


function spell0_1563(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1563', 5347, 1)
end

function spell1_1563(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(11978,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1563', 6251, 1)
end

function Sorts_1563(pUnit, Event)
local choix_sorts_1563 = math.random(0, 1)
if choix_sorts_1563 == 0 then
pUnit:RegisterEvent('spell0_1563', 1, 1)
end
if choix_sorts_1563 == 1 then
pUnit:RegisterEvent('spell1_1563', 1, 1)
end
end

function mob1563_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1563', math.random(1500, 3000), 1)
end

function mob1563_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1563_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1563_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1563, 1, 'mob1563_Action')
RegisterUnitEvent(1563, 2, 'mob1563_Leave')
RegisterUnitEvent(1563, 3, 'mob1563_Kill')
RegisterUnitEvent(1563, 4, 'mob1563_Die')
